package com.csun.cmny.provider.model.dto.contract;

import com.csun.cmny.base.dto.BaseQuery;
import com.csun.cmny.provider.validator.OmcMonitorLogValidator;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
public class ContractQueryDto  extends BaseQuery {

    /*名字*/
    private String name;

    /*楼宇*/
    private String buildingName;

    /*合同状态 0-已签订 1-已退签 2-签订中 3-已过期*/
    private Integer contractState;

    /*合同开始时间-查询开始日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDateBegin;

    /*合同开始时间-查询截至日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDateOver;

    /*合同结束时间-查询开始时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDateBegin;

    /*合同结束时间-查询截至时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDateOver;

    /*机构id*/
    private Long groupId;

    /*用户id*/
    private Long userId;
}
